package cx3k.dataaccess.search;

import java.lang.reflect.Field;



public class AndSearchValue extends SearchValue {

	private static final String JOIN_AND = " and ";
	
	public AndSearchValue(Class<?> type, Field field, Object value, SearchNode parent){
		super(type, field, value, EqualityType.LIKE, parent);
	}
	
	public AndSearchValue(Class<?> type, Field field, Object value, EqualityType operator, SearchNode parent){
		super(type, field, value, operator, parent);
	}

	public AndSearchValue(String className, String fieldName, String value,	EqualityType operator, SearchNode parent) {
		super(className, fieldName, value, operator, parent);
	}

	@Override
	public String getDefaultQueryStr(){
		return JOIN_AND + super.getDefaultQueryStr();
	}
	

}
